import ReactDOM from "react-dom/client";
import React from 'react';
import HelloComp from './components/Hello'
import type {TestRes} from './types/test';

export function hello() {
    console.log('hello');
}

export function renderHello(container: HTMLElement): TestRes {
    const root = ReactDOM.createRoot(container);
    const helloElement = React.createElement(HelloComp, null);
    root.render(helloElement);
    return {};
}
